Integrand size = 24, antiderivative size = 93 \[ \int \frac {\left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{x} \, dx=2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2 \log \left (-\frac {e \sqrt {x}}{d}\right )+4 b n \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \operatorname {PolyLog}\left (2,1+\frac {e \sqrt {x}}{d}\right )-4 b^2 n^2 \operatorname {PolyLog}\left (3,1+\frac {e \sqrt {x}}{d}\right ) \]
[Out]
Time = 0.08 (sec) , antiderivative size = 93, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {2504, 2443, 2481, 2421, 6724} \[ \int \frac {\left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{x} \, dx=4 b n \operatorname {PolyLog}\left (2,\frac {\sqrt {x} e}{d}+1\right ) \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )+2 \log \left (-\frac {e \sqrt {x}}{d}\right ) \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2-4 b^2 n^2 \operatorname {PolyLog}\left (3,\frac {\sqrt {x} e}{d}+1\right ) \]
[In]
[Out]
Rule 2421
Rule 2443
Rule 2481
Rule 2504
Rule 6724
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{x} \, dx,x,\sqrt {x}\right ) \\ & = 2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2 \log \left (-\frac {e \sqrt {x}}{d}\right )-(4 b e n) \text {Subst}\left (\int \frac {\log \left (-\frac {e x}{d}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d+e x} \, dx,x,\sqrt {x}\right ) \\ & = 2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2 \log \left (-\frac {e \sqrt {x}}{d}\right )-(4 b n) \text {Subst}\left (\int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (-\frac {e \left (-\frac {d}{e}+\frac {x}{e}\right )}{d}\right )}{x} \, dx,x,d+e \sqrt {x}\right ) \\ & = 2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2 \log \left (-\frac {e \sqrt {x}}{d}\right )+4 b n \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \text {Li}_2\left (1+\frac {e \sqrt {x}}{d}\right )-\left (4 b^2 n^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {x}{d}\right )}{x} \, dx,x,d+e \sqrt {x}\right ) \\ & = 2 \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2 \log \left (-\frac {e \sqrt {x}}{d}\right )+4 b n \left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \text {Li}_2\left (1+\frac {e \sqrt {x}}{d}\right )-4 b^2 n^2 \text {Li}_3\left (1+\frac {e \sqrt {x}}{d}\right ) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(195\) vs. \(2(93)=186\).
Time = 0.10 (sec) , antiderivative size = 195, normalized size of antiderivative = 2.10 \[ \int \frac {\left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{x} \, dx=\left (a-b n \log \left (d+e \sqrt {x}\right )+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2 \log (x)+2 b n \left (a-b n \log \left (d+e \sqrt {x}\right )+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right ) \left (\left (\log \left (d+e \sqrt {x}\right )-\log \left (1+\frac {e \sqrt {x}}{d}\right )\right ) \log (x)-2 \operatorname {PolyLog}\left (2,-\frac {e \sqrt {x}}{d}\right )\right )+2 b^2 n^2 \left (\log ^2\left (d+e \sqrt {x}\right ) \log \left (-\frac {e \sqrt {x}}{d}\right )+2 \log \left (d+e \sqrt {x}\right ) \operatorname {PolyLog}\left (2,1+\frac {e \sqrt {x}}{d}\right )-2 \operatorname {PolyLog}\left (3,1+\frac {e \sqrt {x}}{d}\right )\right ) \]
[In]
[Out]
\[\int \frac {{\left (a +b \ln \left (c \left (d +e \sqrt {x}\right )^{n}\right )\right )}^{2}}{x}d x\]
[In]
[Out]
\[ \int \frac {\left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left ({\left (e \sqrt {x} + d\right )}^{n} c\right ) + a\right )}^{2}}{x} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{x} \, dx=\int \frac {\left (a + b \log {\left (c \left (d + e \sqrt {x}\right )^{n} \right )}\right )^{2}}{x}\, dx \]
[In]
[Out]
\[ \int \frac {\left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left ({\left (e \sqrt {x} + d\right )}^{n} c\right ) + a\right )}^{2}}{x} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left ({\left (e \sqrt {x} + d\right )}^{n} c\right ) + a\right )}^{2}}{x} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )\right )^2}{x} \, dx=\int \frac {{\left (a+b\,\ln \left (c\,{\left (d+e\,\sqrt {x}\right )}^n\right )\right )}^2}{x} \,d x \]
[In]
[Out]